/*
 * Copyright 2018 - 2050 zyp.All Rights Reserved.
 *
 */
package com.zyp.common.message.controller.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.zyp.common.message.common.base.BaseController;
import com.zyp.common.message.common.domain.Result;
import com.zyp.common.message.manager.PushMessageManager;
import lombok.extern.slf4j.Slf4j;
import io.swagger.annotations.ApiOperation;

import javax.validation.Valid;

/**
 * 推送消息记录 <br />
 * @createTime 2018-11-17 10:32:26
 * @author dev-center
 */

@Controller
@Slf4j
@RequestMapping(value = "api/pushMessage")
public class PushMessageApi extends BaseController {

    @Autowired
    private PushMessageManager pushMessageManager;

    @ApiOperation(value = "新建推送消息记录", tags = {"推送消息记录"})
    @RequestMapping(value = "/get", produces = {"application/json"}, method = RequestMethod.POST)
    @Valid
    public Result<Void>  get() throws Exception {
        pushMessageManager.get();
        return successVoid();
    }
}
